
package com.yimixian.app.model;

import com.yimixian.app.goods.Good;

import java.util.ArrayList;
import java.util.List;

public class GoodDetail {

    public Good good;
    public Share share;
    public List<TopRank> topRank = new ArrayList<>();
    public List<BestPartner> bestPartner = new ArrayList<>();
    public boolean canComment;
    public boolean commentShow = true;
    public String commentBtnName = "";
    public String tasteDesc = "";
    public String freshnessDesc = "";

    public GoodDetail() {

    }

    public GoodDetail(Good good, Share share, List<TopRank> topRank, List<BestPartner> bestPartner) {
        this.good = good;
        this.share = share;
        this.topRank = topRank;
        this.bestPartner = bestPartner;
    }

    public Good getGood() {
        return good;
    }

    public void setGood(Good good) {
        this.good = good;
    }

    public Share getShare() {
        return share;
    }

    public void setShare(Share share) {
        this.share = share;
    }

    public List<TopRank> getTopRank() {
        return topRank;
    }

    public void setTopRank(List<TopRank> topRank) {
        this.topRank = topRank;
    }

    public List<BestPartner> getBestPartner() {
        return bestPartner;
    }

    public void setBestPartner(List<BestPartner> bestPartner) {
        this.bestPartner = bestPartner;
    }

    public static class BestPartner {

        public String imgUrl;
        public String id;
        public String promoType;
        public String stockCount;
        public double unitOldPrice;
        public String unitDesc;
        public String unitPrice;

        public BestPartner(String imgUrl, String id, String promoType, String stockCount,
                double unitOldPrice, String unitDesc, String unitPrice) {
            this.imgUrl = imgUrl;
            this.id = id;
            this.promoType = promoType;
            this.stockCount = stockCount;
            this.unitOldPrice = unitOldPrice;
            this.unitDesc = unitDesc;
            this.unitPrice = unitPrice;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPromoType() {
            return promoType;
        }

        public void setPromoType(String promoType) {
            this.promoType = promoType;
        }

        public String getStockCount() {
            return stockCount;
        }

        public void setStockCount(String stockCount) {
            this.stockCount = stockCount;
        }

        public double getUnitOldPrice() {
            return unitOldPrice;
        }

        public void setUnitOldPrice(double unitOldPrice) {
            this.unitOldPrice = unitOldPrice;
        }

        public String getUnitDesc() {
            return unitDesc;
        }

        public void setUnitDesc(String unitDesc) {
            this.unitDesc = unitDesc;
        }

        public String getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(String unitPrice) {
            this.unitPrice = unitPrice;
        }
    }

    public static class Share {
        public String title;
        public String shareurl;
        public String iconImgurl;
        public String shareContent;

        public Share(){
            
        }

        public String getShareContent() {
            return shareContent;
        }

        public void setShareContent(String shareContent) {
            this.shareContent = shareContent;
        }

        public String getIconImgurl() {
            return iconImgurl;
        }

        public void setIconImgurl(String iconImgurl) {
            this.iconImgurl = iconImgurl;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getShareurl() {
            return shareurl;
        }

        public void setShareurl(String shareurl) {
            this.shareurl = shareurl;
        }
    }

    public static class TopRank {

        public String imgUrl;
        public String title;
        public String id;
        public String promoType;
        public String stockCount;
        public double unitOldPrice;
        public String unitDesc;
        public String unitPrice;

        public String getImgrl() {
            return imgUrl;
        }

        public void setImgrl(String imgrl) {
            this.imgUrl = imgrl;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPromoType() {
            return promoType;
        }

        public void setPromoType(String promoType) {
            this.promoType = promoType;
        }

        public String getStockCount() {
            return stockCount;
        }

        public void setStockCount(String stockCount) {
            this.stockCount = stockCount;
        }

        public double getUnitOldPrice() {
            return unitOldPrice;
        }

        public void setUnitOldPrice(double unitOldPrice) {
            this.unitOldPrice = unitOldPrice;
        }

        public String getUnitDesc() {
            return unitDesc;
        }

        public void setUnitDesc(String unitDesc) {
            this.unitDesc = unitDesc;
        }

        public String getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(String unitPrice) {
            this.unitPrice = unitPrice;
        }

        public TopRank(String imgrl, String title, String id, String promoType, String stockCount,
                double unitOldPrice, String unitDesc, String unitPrice) {
            this.imgUrl = imgrl;
            this.title = title;
            this.id = id;
            this.promoType = promoType;
            this.stockCount = stockCount;
            this.unitOldPrice = unitOldPrice;
            this.unitDesc = unitDesc;
            this.unitPrice = unitPrice;
        }
    }

}
